package com.effective;

import java.util.Comparator;

public class TestArray {
	Comparator<Integer> naturalOrder = new Comparator<Integer>() {
		public int compare(Integer first, Integer second) {
			return first < second ? -1 : (first == second ? 0 : 1);
		}
	};

	public static void main(String[] args) {
		TestArray ta = new TestArray();
		System.out.println(ta.naturalOrder.compare(new Integer(12), new Integer(12)));
		Integer t = null;
		if(t == 32) {
			System.out.println(32);
		}
	}
}/**
* Output: 
* 1
*/
